package com.qf.j2112.utils;

import com.qf.j2112.po.TourArea;
import com.qf.j2112.vo.GoodsItemsVo;

public class GoodItemsUtil {
    public static GoodsItemsVo itemsVo(TourArea tourArea){
        GoodsItemsVo goodsItemsVo = new GoodsItemsVo();
        goodsItemsVo.setGoodid(tourArea.getAid());
        goodsItemsVo.setGoodname(tourArea.getAname());
        goodsItemsVo.setGoodPrice(Double.parseDouble(String.valueOf(tourArea.getPrice())));
        goodsItemsVo.setGoodItem(String.valueOf(tourArea.getGrade()));
        goodsItemsVo.setGoodcount(tourArea.getCount());
        goodsItemsVo.setGoodImg(tourArea.getApic1());
        goodsItemsVo.setGoodImg2(tourArea.getApic2());
        goodsItemsVo.setGoodImg3(tourArea.getApic3());
        goodsItemsVo.setGooddescribe(tourArea.getDesc()+tourArea.getDetail()+tourArea.getAddr()+"");
        return goodsItemsVo;
    }
}
